import { Toolkit } from "../Framework/scripts/Toolkit";
import Watcher from "../Framework/scripts/Watcher";

const { ccclass, property } = cc._decorator;


@ccclass
export default class Main extends cc.Component {


    jump2stage(e:cc.Event.EventTouch){
        try{
            Watcher.clear();
            cc.director.loadScene(e.currentTarget.name)
        }
        catch(e){
            Toolkit.logFailure(e);
        }
    }
}
